package com.sniper.mybatis.service.impl;

import com.sniper.datasource.DataSource;
import com.sniper.datasource.DataSourceValue;
import com.sniper.model.AdminUser;
import com.sniper.model.Collect;
import com.sniper.mybatis.service.BaseService;

import java.util.List;

public interface CollectService extends BaseService<Collect> {
    String URL_MENU = "url_menu";

    @DataSource(DataSourceValue.SLAVE)
    List<Collect> listCollect(int uid, String type);

    @DataSource(DataSourceValue.MASTER)
    void insertValue(String url, String name, String type, AdminUser adminUser);
}
